package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.JhjsSixSixHistoryMapper;
import com.ruoyi.control.domain.JhjsSixSixHistory;
import com.ruoyi.control.service.IJhjsSixSixHistoryService;

/**
 * 606机巷局扇历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class JhjsSixSixHistoryServiceImpl extends ServiceImpl<JhjsSixSixHistoryMapper, JhjsSixSixHistory> implements IJhjsSixSixHistoryService //修改
{
    @Autowired
    private JhjsSixSixHistoryMapper jhjsSixSixHistoryMapper;

    /**
     * 查询606机巷局扇历史数据
     * 
     * @param id 606机巷局扇历史数据主键
     * @return 606机巷局扇历史数据
     */
    @Override
    public JhjsSixSixHistory selectJhjsSixSixHistoryById(String id)
    {
        return jhjsSixSixHistoryMapper.selectJhjsSixSixHistoryById(id);
    }

    /**
     * 查询606机巷局扇历史数据列表
     * 
     * @param jhjsSixSixHistory 606机巷局扇历史数据
     * @return 606机巷局扇历史数据
     */
    @Override
    public List<JhjsSixSixHistory> selectJhjsSixSixHistoryList(JhjsSixSixHistory jhjsSixSixHistory)
    {
        return jhjsSixSixHistoryMapper.selectJhjsSixSixHistoryList(jhjsSixSixHistory);
    }

    /**
     * 新增606机巷局扇历史数据
     * 
     * @param jhjsSixSixHistory 606机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int insertJhjsSixSixHistory(JhjsSixSixHistory jhjsSixSixHistory)
    {
        return jhjsSixSixHistoryMapper.insertJhjsSixSixHistory(jhjsSixSixHistory);
    }

    /**
     * 修改606机巷局扇历史数据
     * 
     * @param jhjsSixSixHistory 606机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int updateJhjsSixSixHistory(JhjsSixSixHistory jhjsSixSixHistory)
    {
        jhjsSixSixHistory.setUpdateTime(DateUtils.getNowDate());
        return jhjsSixSixHistoryMapper.updateJhjsSixSixHistory(jhjsSixSixHistory);
    }

    /**
     * 批量删除606机巷局扇历史数据
     * 
     * @param ids 需要删除的606机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsSixSixHistoryByIds(String[] ids)
    {
        return jhjsSixSixHistoryMapper.deleteJhjsSixSixHistoryByIds(ids);
    }

    /**
     * 删除606机巷局扇历史数据信息
     * 
     * @param id 606机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsSixSixHistoryById(String id)
    {
        return jhjsSixSixHistoryMapper.deleteJhjsSixSixHistoryById(id);
    }
}
